package com.xinchuang.domain.vo;

import cn.hutool.core.util.ObjectUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

@Data
public class NoteDetailVo {
    // 注意事项上传图片路径
    private String announcementsImages;
    // 试模注意事项有无特殊要求
    private String announcements;
    // 试模原因Id
    private String tryOutReasonId;
    // 副试模目的
    private String subTarget;
    // 试模目的Id
    private String targetId;
    private String tongmanId;
    //钳工组长
    private String tongmanName;
    //模具重量
    private String moldWeight;
    //计划试模时间
    private String plannedTime;
    // 试模次数
    private String tryOutTimes;
    // 样件重量
    private String samplePieceWeight;
    // 材料用量
    private String materialsCount;
    // 制件颜色
    private String color;
    //  试模件数
    private String moldCount;
    //制件材料
    private String materials;
    // 编号
    private String serialNumber;
    //  热点偶型号（J或K）
    private String hotSpotPairType;
    // 几点浇注
    private String pourTime;
    // 几点温控（注明接口）
    private String temperatureControlTime;
    // 模具外形
    private String moldLook;
    //  模具名称
    private String moldName;
    // 模具编号
    private String moldId;
    // 版本ID
    private String versionId;
    //是否有时间继电器
    private String hasTimeRelay;
    //通知单名称
    private String noteName;
    //试模设备Id
    private String tryoutDeviceId;
    // 是否有限位开关
    private String hasLimitSwitch;
    //几点顺序注塑
    private String injectionMoldingTime;
    //是否需要液压工作站
    private String needHydraumaticStation;
    //拟制人
    private String projectManager;
    //审核人
    private String checkoutName;
    //批准(人)
    private String approver;
    //试模通知单Id
    private String noteId;
    //子表ID
    private String planId;
    //状态
    private String status;

    public NoteDetailVo getData(NoteDetailVo noteDetailVo) {
        if (StringUtils.isBlank(noteDetailVo.getAnnouncementsImages())) {
            noteDetailVo.setAnnouncementsImages("");
        }
        if (StringUtils.isBlank(noteDetailVo.getAnnouncements())) {
            noteDetailVo.setAnnouncements("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTryoutDeviceId())) {
            noteDetailVo.setTryoutDeviceId("");
        }
        if (StringUtils.isBlank(noteDetailVo.getSubTarget())) {
            noteDetailVo.setSubTarget("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTargetId())) {
            noteDetailVo.setTargetId("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTongmanName())) {
            noteDetailVo.setTongmanName("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMoldWeight())) {
            noteDetailVo.setMoldWeight("");
        }
        if (StringUtils.isBlank(noteDetailVo.getPlannedTime())) {
            noteDetailVo.setPlannedTime("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTryOutTimes())) {
            noteDetailVo.setTryOutTimes("");
        }
        if (StringUtils.isBlank(noteDetailVo.getSamplePieceWeight())) {
            noteDetailVo.setSamplePieceWeight("");
        }
        if (StringUtils.isBlank(noteDetailVo.getColor())) {
            noteDetailVo.setColor("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMoldCount())) {
            noteDetailVo.setMoldCount("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMaterials())) {
            noteDetailVo.setMaterials("");
        }
        if (StringUtils.isBlank(noteDetailVo.getSerialNumber())) {
            noteDetailVo.setSerialNumber("");
        }
        if (StringUtils.isBlank(noteDetailVo.getHotSpotPairType())) {
            noteDetailVo.setHotSpotPairType("");
        }
        if (StringUtils.isBlank(noteDetailVo.getPourTime())) {
            noteDetailVo.setPourTime("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTemperatureControlTime())) {
            noteDetailVo.setTemperatureControlTime("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMoldLook())) {
            noteDetailVo.setMoldLook("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMoldName())) {
            noteDetailVo.setMoldName("");
        }
        if (StringUtils.isBlank(noteDetailVo.getMoldId())) {
            noteDetailVo.setMoldId("");
        }
        if (StringUtils.isBlank(noteDetailVo.getVersionId())) {
            noteDetailVo.setVersionId("");
        }
        if (StringUtils.isBlank(noteDetailVo.getHasTimeRelay())) {
            noteDetailVo.setHasTimeRelay("");
        }
        if (StringUtils.isBlank(noteDetailVo.getNoteName())) {
            noteDetailVo.setNoteName("");
        }
        if (StringUtils.isBlank(noteDetailVo.getTryoutDeviceId())) {
            noteDetailVo.setTryoutDeviceId("");
        }
        if (StringUtils.isBlank(noteDetailVo.getHasLimitSwitch())) {
            noteDetailVo.setHasLimitSwitch("");
        }
        if (StringUtils.isBlank(noteDetailVo.getInjectionMoldingTime())) {
            noteDetailVo.setInjectionMoldingTime("");
        }
        if (StringUtils.isBlank(noteDetailVo.getNeedHydraumaticStation())) {
            noteDetailVo.setNeedHydraumaticStation("");
        }
        if (StringUtils.isBlank(noteDetailVo.getProjectManager())) {
            noteDetailVo.setProjectManager("");
        }
        if (StringUtils.isBlank(noteDetailVo.getCheckoutName())) {
            noteDetailVo.setCheckoutName("");
        }
        if (StringUtils.isBlank(noteDetailVo.getApprover())) {
            noteDetailVo.setApprover("");
        }
        if (StringUtils.isBlank(noteDetailVo.getNoteId())) {
            noteDetailVo.setNoteId("");
        }
        return noteDetailVo;
    }

 }
